package aop;

import java.lang.reflect.Method;
import java.util.Arrays;

import org.springframework.aop.MethodBeforeAdvice;

//实现前置通知的类
public class LogBeforeAdvice implements MethodBeforeAdvice {

	public void before(Method method, Object[] args, Object target)
			throws Throwable {
		MyLogger logger = new MyLogger();
		logger.log("Method:" + method.getName() + " begins.    args:"+Arrays.toString(args));
		
	}

}
